package com.ifsaid.im.vo;

import lombok.*;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @description: 描述
 * @author: Wang Chen Chen<932560435@qq.com>
 * @date: 2019/11/4 16:32
 */


@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class RegisteredUserVO implements java.io.Serializable {

    /**
     * @description: 用户名
     * @date: 2019/11/4 13:50
     */
    @NotBlank(message = "用户名必须填写！")
    private String username;

    /**
     * @description: 密码
     * @date: 2019/11/4 13:50
     */
    @NotBlank(message = "密码必须填写！")
    private String password;

    /**
     * @description: 头像 [http url链接]
     * @date: 2019/11/4 13:50
     */
    @NotBlank(message = "头像地址必须填写！")
    @Pattern(regexp = "(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]",
            message = "头像地址格式不正确！")
    private String avatar;

    /**
     * @description: 昵称
     * @date: 2019/11/4 13:50
     */
    @NotBlank(message = "昵称必须填写！")
    private String nickname;

}
